<template>
	<div >
		<component 
			v-for="(item, index) in getRealComponentsList[0][1]" 
			v-sdrag="{componentName: item.componentName, handleType: 'sort', index}" 
			:is="item.componentName" 
			:key="index" 
			:config="item" 
			:data-id="item.id" 
			:dataList="dataStore[item.componentName][item.id]" 
			:part="1"
			>
		</component>
	</div>
</template>

<script>
	import { mapGetters, mapMutations } from "vuex";
	import initData from "../../utils/lxn/handleData";
	import PointMallCarousel from "../../components/PointMallCarousel/_index";
	// import HomeNotice from "../../real-components/HomeNotice/_index";
	// import HomeCarousel from "../../real-components/HomeCarousel/_index";
	// import UserCard from "../../real-components/UserCard/_index";
	// import NewZone from "../../real-components/NewZone/_index";
	// import ProductItemNew from "../../real-components/ProductItemNew/_index";
	// import FeaturedGoodsNew from "../../real-components/FeaturedGoodsNew/_index";
	// import FirstClassifyNew from "../../real-components/FirstClassifyNew/_index";
	// import GuessYouLike from "../../real-components/GuessYouLike/_index"
	// import ActivitiesTwoPro from "../../real-components/activitiesTwoPro/_index";
	// import ActivitiesOnePro from "../../real-components/activitiesOnePro/_index";
	// import ActivitiesNinePro from "../../real-components/activitiesNinePro/_index";
	// import ActivitiesThreePic from "../../real-components/activitiesThreePic/_index";
	// import Activitiesbanner from "../../real-components/activitiesbanner/_index";
	// import ActivitieCoupons from "../../real-components/ActivitieCoupons/_index";
	// import ActivitieCoupons2 from "../../real-components/ActivitieCoupons2/_index";

	export default {
		data() {
			return {
			}
		},
		components: {
			PointMallCarousel,
			// HomeCarousel,
			// HomeNotice,
			// UserCard,
			// NewZone,
			// ProductItemNew,
			// FeaturedGoodsNew,
			// FirstClassifyNew,
			// ActivitiesTwoPro,
			// ActivitiesOnePro,
			// ActivitiesNinePro,
			// ActivitiesThreePic,
			// Activitiesbanner,
			// ActivitieCoupons,
			// ActivitieCoupons2,
			// GuessYouLike
		},
		methods: {
			//请求模板轮播配置的缓存数据
			getCarsouleData(isRefresh = false){
				initData(isRefresh);
			}
		},
		computed: {
			...mapGetters("xxy", {
				dataStore: "getDataStore"
			}),
			...mapGetters("gw", ["getRealComponentsList"]),
		},
		created() {
		},
		watch: {
		},
		mounted() {
			this.getCarsouleData();
		},
	}
</script>

<style scoped>
</style>